package editor
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import flash.events.MouseEvent;

	public class pi_acontrol extends uif_ecomponent {
		
		private var _now: Number;
		protected var _focus: Boolean;
		protected var image:*;

		public function pi_acontrol(parent:uif_component, c_image: Class, ax:int=0, ay:int=0) {
			image = new c_image();
			super(parent, ax, ay, image.width, image.height);
			buttonMode = true;
			mouseChildren = false;
			addChild(image);
			_now = 0;
			_focus = false;
			addEvent(MouseEvent.MOUSE_OVER, function(e: MouseEvent): void {
				fx('now', 0, 1).start();
				_focus = true;
			});
			addEvent(MouseEvent.MOUSE_OUT, function(e: MouseEvent): void {
				fx('now', now, 0).start();
				_focus = false;
			});
		}
		
		public function get now(): Number {
			return _now;
		}
		
		public function set now(a_now: Number): void {
			_now = a_now;
		}
		
	}
}